import { LISTITEM, SETLIST, SETNAME } from '../types/store.d'
// export const setList = (can: number) => {
//     return (dispatch: Dispatch) => {
//         dispatch({
//             type: 'setList',
//             list: can
//         })
//     }
// }

export const setList = (can: LISTITEM[]) => ({
    type: SETLIST,
    payload: can
})

export const setName = (can: string) => ({
    type: SETNAME,
    payload: can
})